package com.wnxy.producer.d_topic;

import com.wnxy.producer.c_direct.DirectProducer;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class App {

    @Autowired
    private TopicProducer topicProducer;

    private final String EXCHANGE_LOG = "exchange-topic";

    @Test
    public void seat() {
        topicProducer.sendMsg(EXCHANGE_LOG,"lazy.a.b.c","橙色阳光");
    }



}
